<?php
		direct_url();
		
		$base_url=HOME.'truyen/user/'.$_GET['user'].'/';
		
		$db=new db;
		$db->connect();
		$user=$db->security($_GET['user']);

		$cache=new Cache;
		$sql ="select id from truyen where user_upload='".$user."'  order by id desc";
		$sql2="select id from truyen where user_upload='".$user."'";
		
		
		$pager = new Pagination($sql,24,4,$base_url,1800,'truyen_1');
		$pager->setDebug(false);
		$data['info'] = $pager->paginate($cache,$sql2);
		$data['nav']	= $pager->renderFullNav();
		
			$data1[title]=web_title("Truyện Đăng bởi ".$_GET['user']);
			$data1['mota']=$data['status']['mota'];
			$data1['keyword']=$data['status']['keyword'];
			loadview('template/header',$data1);
			loadview("truyen/list_truyen_user",$data);
			
			
